/**
 * Project: apollo-base-dal
 * 
 * File Created at 2016年5月5日
 * 
 * Copyright 2015-2016 dx.com Croporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * DongXue software Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with dx.com.
 */
package com.dx.pf.dal.conf.db;

import java.io.Serializable;

import javax.xml.bind.Marshaller;

/** 
* @ClassName: DruidProperty 
* @Description: druid的数据源配置文件属性
* @author wuzhenfang(wzfbj2008@163.com)
* @date 2016年5月5日 下午2:48:13 
* @version V1.0 
*/
public class DruidProperty implements Serializable{

	private static final long serialVersionUID = -7373412110911854633L;
	
	private String driverClass;
	private String isShard;
	private String dbName;
	private String userName;
	private String passWord;
	private String url;
	private String initialSize;
	private String minIdle;
	private String maxActive;
	private String maxWait;
	/* 是否缓存preparedStatement，也就是PSCache，在mysql下建议关闭，分库分表较多的数据库，建议配置为false */
	private String poolPreparedStatements;
	private String maxOpenPreparedStatements;
	/* 申请连接时执行validationQuery检测连接是否有效，做了这个配置会降低性能 */
	private String testOnBorrow;
	/* 归还连接时执行validationQuery检测连接是否有效，做了这个配置会降低性能 */
	private String testOnReturn;
	/* 建议配置为true，不影响性能 */
	private String testWhileIdle;
	private String filters;
	private String connectionProperties;
	/* 合并多个DruidDataSource的监控数据 */
	private String useGlobalDataSourceStat;
	/* 保存DruidDataSource的监控记录到日志中 */
	private String timeBetweenLogStatsMillis;
	private Marshaller marshaller;
	private String dbSize;
	private boolean isShow;
	private int dataSourceIndex;
	private boolean init_method;
	private String tbSuffix = "_0000";
	
	
	/**
	 * @return the driverClass
	 */
	public String getDriverClass() {
		return driverClass;
	}
	/**
	 * @param driverClass the driverClass to set
	 */
	public void setDriverClass(String driverClass) {
		this.driverClass = driverClass;
	}
	/**
	 * @return the isShard
	 */
	public String getIsShard() {
		return isShard;
	}
	/**
	 * @param isShard the isShard to set
	 */
	public void setIsShard(String isShard) {
		this.isShard = isShard;
	}
	/**
	 * @return the dbName
	 */
	public String getDbName() {
		return dbName;
	}
	/**
	 * @param dbName the dbName to set
	 */
	public void setDbName(String dbName) {
		this.dbName = dbName;
	}
	/**
	 * @return the userName
	 */
	public String getUserName() {
		return userName;
	}
	/**
	 * @param userName the userName to set
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}
	/**
	 * @return the passWord
	 */
	public String getPassWord() {
		return passWord;
	}
	/**
	 * @param passWord the passWord to set
	 */
	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}
	/**
	 * @return the url
	 */
	public String getUrl() {
		return url;
	}
	/**
	 * @param url the url to set
	 */
	public void setUrl(String url) {
		this.url = url;
	}
	/**
	 * @return the initialSize
	 */
	public String getInitialSize() {
		return initialSize;
	}
	/**
	 * @param initialSize the initialSize to set
	 */
	public void setInitialSize(String initialSize) {
		this.initialSize = initialSize;
	}
	/**
	 * @return the minIdle
	 */
	public String getMinIdle() {
		return minIdle;
	}
	/**
	 * @param minIdle the minIdle to set
	 */
	public void setMinIdle(String minIdle) {
		this.minIdle = minIdle;
	}
	/**
	 * @return the maxActive
	 */
	public String getMaxActive() {
		return maxActive;
	}
	/**
	 * @param maxActive the maxActive to set
	 */
	public void setMaxActive(String maxActive) {
		this.maxActive = maxActive;
	}
	/**
	 * @return the maxWait
	 */
	public String getMaxWait() {
		return maxWait;
	}
	/**
	 * @param maxWait the maxWait to set
	 */
	public void setMaxWait(String maxWait) {
		this.maxWait = maxWait;
	}
	/**
	 * @return the poolPreparedStatements
	 */
	public String getPoolPreparedStatements() {
		return poolPreparedStatements;
	}
	/**
	 * @param poolPreparedStatements the poolPreparedStatements to set
	 */
	public void setPoolPreparedStatements(String poolPreparedStatements) {
		this.poolPreparedStatements = poolPreparedStatements;
	}
	/**
	 * @return the maxOpenPreparedStatements
	 */
	public String getMaxOpenPreparedStatements() {
		return maxOpenPreparedStatements;
	}
	/**
	 * @param maxOpenPreparedStatements the maxOpenPreparedStatements to set
	 */
	public void setMaxOpenPreparedStatements(String maxOpenPreparedStatements) {
		this.maxOpenPreparedStatements = maxOpenPreparedStatements;
	}
	/**
	 * @return the testOnBorrow
	 */
	public String getTestOnBorrow() {
		return testOnBorrow;
	}
	/**
	 * @param testOnBorrow the testOnBorrow to set
	 */
	public void setTestOnBorrow(String testOnBorrow) {
		this.testOnBorrow = testOnBorrow;
	}
	/**
	 * @return the testOnReturn
	 */
	public String getTestOnReturn() {
		return testOnReturn;
	}
	/**
	 * @param testOnReturn the testOnReturn to set
	 */
	public void setTestOnReturn(String testOnReturn) {
		this.testOnReturn = testOnReturn;
	}
	/**
	 * @return the testWhileIdle
	 */
	public String getTestWhileIdle() {
		return testWhileIdle;
	}
	/**
	 * @param testWhileIdle the testWhileIdle to set
	 */
	public void setTestWhileIdle(String testWhileIdle) {
		this.testWhileIdle = testWhileIdle;
	}
	/**
	 * @return the filters
	 */
	public String getFilters() {
		return filters;
	}
	/**
	 * @param filters the filters to set
	 */
	public void setFilters(String filters) {
		this.filters = filters;
	}
	/**
	 * @return the connectionProperties
	 */
	public String getConnectionProperties() {
		return connectionProperties;
	}
	/**
	 * @param connectionProperties the connectionProperties to set
	 */
	public void setConnectionProperties(String connectionProperties) {
		this.connectionProperties = connectionProperties;
	}
	/**
	 * @return the useGlobalDataSourceStat
	 */
	public String getUseGlobalDataSourceStat() {
		return useGlobalDataSourceStat;
	}
	/**
	 * @param useGlobalDataSourceStat the useGlobalDataSourceStat to set
	 */
	public void setUseGlobalDataSourceStat(String useGlobalDataSourceStat) {
		this.useGlobalDataSourceStat = useGlobalDataSourceStat;
	}
	/**
	 * @return the timeBetweenLogStatsMillis
	 */
	public String getTimeBetweenLogStatsMillis() {
		return timeBetweenLogStatsMillis;
	}
	/**
	 * @param timeBetweenLogStatsMillis the timeBetweenLogStatsMillis to set
	 */
	public void setTimeBetweenLogStatsMillis(String timeBetweenLogStatsMillis) {
		this.timeBetweenLogStatsMillis = timeBetweenLogStatsMillis;
	}
	/**
	 * @return the marshaller
	 */
	public Marshaller getMarshaller() {
		return marshaller;
	}
	/**
	 * @param marshaller the marshaller to set
	 */
	public void setMarshaller(Marshaller marshaller) {
		this.marshaller = marshaller;
	}
	/**
	 * @return the dbSize
	 */
	public String getDbSize() {
		return dbSize;
	}
	/**
	 * @param dbSize the dbSize to set
	 */
	public void setDbSize(String dbSize) {
		this.dbSize = dbSize;
	}
	/**
	 * @return the isShow
	 */
	public boolean isShow() {
		return isShow;
	}
	/**
	 * @param isShow the isShow to set
	 */
	public void setShow(boolean isShow) {
		this.isShow = isShow;
	}
	/**
	 * @return the dataSourceIndex
	 */
	public int getDataSourceIndex() {
		return dataSourceIndex;
	}
	/**
	 * @param dataSourceIndex the dataSourceIndex to set
	 */
	public void setDataSourceIndex(int dataSourceIndex) {
		this.dataSourceIndex = dataSourceIndex;
	}
	/**
	 * @return the init_method
	 */
	public boolean isInit_method() {
		return init_method;
	}
	/**
	 * @param init_method the init_method to set
	 */
	public void setInit_method(boolean init_method) {
		this.init_method = init_method;
	}
	/**
	 * @return the tbSuffix
	 */
	public String getTbSuffix() {
		return tbSuffix;
	}
	/**
	 * @param tbSuffix the tbSuffix to set
	 */
	public void setTbSuffix(String tbSuffix) {
		this.tbSuffix = tbSuffix;
	}
	
}
